﻿namespace Borg.AttributeAnalyze.Result
{
    public class MissingDefaultCtor : ResultBase
    {
        public MissingDefaultCtor(ExtensionTypeInfo extension)
            : base(extension.Assembly, Component.Extension, ResultType.MissingDefaultCtor, extension, extension)
        { }

        public override string ToMsBuildMessageString()
        {
            return string.Format(
                "missing default constructor\n{0}slot name: {1}\n{0}class: {2}",
                GetWhiteSpace(2), Name, TypeName);
        }

        public override MessageType MessageType
        {
            get { return MessageType.Error; }
        }
    }
}

